<template>
	<view class="content">
		<view class="header">
			<view class="box">
				<text class="iconfont icon-left" @click="go()"></text>
				<text class="title">私人法务助理</text>
			</view>
			<text>律师在线中</text>
		</view>
		<view class="main_box">
			<scroll-view scroll-y="true" style="height: 100%;width: 100%;">
			<view class="item item1">
				<image src="../../static/icon1.png" mode=""></image>
				<view class="box"><text>你你好你你好你好你好你好好</text></view>
			</view>
			<view class="item itme2">
				<view class="box"><text>你好</text></view>
				<image src="../../static/icon1.png" mode=""></image>
			</view>
			</scroll-view>
		</view>
		<view class="footer">
			<input type="text" value="" placeholder="" placeholder-class="s" />
			<view class="icon">
				<view><text class="iconfont icon-yuyin"></text></view>
				<view><text class="iconfont icon-image"></text></view>
				<view><text class="iconfont icon-zhaoxiang"></text></view>
				<view><text class="iconfont icon-biaoqing"></text></view>
				<view><text class="iconfont icon-wendang"></text></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			go(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style lang="scss">
	view,
	text,
	input,
	textarea {
		box-sizing: border-box;
	}
	.footer{
		overflow: hidden;
		width: 100%;
		height: 210rpx;
		background: #F5F6F7;
		position: fixed;
		left: 0;
		bottom: 0;
		z-index: 999999;
		input{
			width: 716rpx;
			height: 60rpx;
			border-radius: 40rpx;
			margin: 0 auto;
			margin-top: 17rpx;
			background: #fff;
			padding: 0 10rpx;
		}
		.icon{
			overflow: hidden;
			width: 100%;
			height: 86rpx;
			display: flex;
			align-items: center;
			view{
				width: 20%;
				height: 100%;
				display: flex;
				align-items: center;
				justify-content: center;
				.iconfont{
					display: block;
					text-align: center;
					font-size: 45rpx;
					color: #7A7A7C;
				}
			}
		}
	}
	page{
		background: #ECEDEE;
	}
	.main_box{
		overflow: hidden;
		width: 100%;
		height: calc(100vh - 365rpx);
		padding: 28rpx 20rpx 20rpx 20rpx;
		.item{
			overflow: hidden;
			width: 100%;
			margin-bottom: 38rpx;
			display: flex;
			image{
				width: 70rpx;
				height: 70rpx;
				border-radius: 50%;
			}
			&.itme2{
				justify-content: flex-end;
				.box{
					position: relative;
					background: #153B33;
					border-radius: 10rpx;
					margin-right: 30rpx;
					padding: 17rpx 35rpx;
					&::After{
						content: '';
						width: 19rpx;
						height: 20rpx;
						background-image: url(../../static/ech_11.jpg);
						background-size: 100% 100%;
						position: absolute;
						right: -19rpx;
						top: 25rpx;
					}
					text{
						font-size: 25rpx;
						color: #fff;
						line-height: 35rpx;
						max-width: 400rpx;
						display: block;
					}
				}
			}
			&.item1{
				justify-content: flex-start;
				.box{
					position: relative;
					background: #fff;
					border-radius: 10rpx;
					margin-left: 30rpx;
					padding: 17rpx 35rpx;
					&::After{
						content: '';
						width: 19rpx;
						height: 20rpx;
						background-image: url(../../static/ech_07.jpg);
						background-size: 100% 100%;
						position: absolute;
						left: -19rpx;
						top: 25rpx;
					}
					text{
						font-size: 25rpx;
						color: #2D2D2D;
						line-height: 35rpx;
						max-width: 400rpx;
						display: block;
					}
				}
			}
		}
	}
	.content{
		overflow: hidden;
		width: 100%;
		position: relative;
		height: 100vh;
		.header{
			overflow: hidden;
			width: 100%;
			height: 155rpx;
			border-bottom: 1px solid #DFE0E1;
			background-color: #ECEDEE;
			position: relative;
			padding: 55rpx 0 0 0;
			& > text{
				font-size: 22rpx;
				color: #787979;
				display: block;
				text-align: center;
				margin-top: 15rpx;
			}
			.box{
				overflow: hidden;
				width: 100%;
				display: flex;
				position: relative;
				align-items: center;
				justify-content: center;
				.title {
					font-size: 28rpx;
					font-weight: bold;
					color: #2D2D2D;
				}
				.icon-shezhi{
					position: absolute;
					right: 17rpx;
					top: 50%;
					font-size: 30rpx;
					transform: translateY(-50%);
				}
				.icon-left{
					color: #2D2D2D;
					position: absolute;
					left: 17rpx;
					font-size: 35rpx;
					top: 50%;
					transform: translateY(-50%);
				}
				
				
			}
		}
	}
</style>
